package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.TInsBuyinfoModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by HangLiu on 2017/2/20.
 */
public interface TInsBuyinfoRepository extends JpaRepository<TInsBuyinfoModel, Integer>, JpaSpecificationExecutor<TInsBuyinfoModel> {
    @Query("select u from TInsBuyinfoModel u where u.pdId=?1")
    List<TInsBuyinfoModel> findBypdId(Integer pId);
}
